package com.junko.model.app;


import com.fasterxml.jackson.annotation.JsonInclude;
import com.junko.model.BaseModel;

import java.util.List;

@JsonInclude(value= JsonInclude.Include.NON_NULL)
public class Ctg extends BaseModel {

    private Integer id;

    private String name;

    private String cover;

    private String parentId;

    private String typeId;

    private CtgType ctgType;

    private Ctg parent;

    private List<Ctg> children;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public CtgType getCtgType() {
        return ctgType;
    }

    public void setCtgType(CtgType ctgType) {
        this.ctgType = ctgType;
    }

    public Ctg getParent() {
        return parent;
    }

    public void setParent(Ctg parent) {
        this.parent = parent;
    }

    public List<Ctg> getChildren() {
        return children;
    }

    public void setChildren(List<Ctg> children) {
        this.children = children;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
}